//
//  EPOSBaseResult.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-03 17:45:20
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSBaseResult.h"
#import "EPOSLocStocks.h"
@implementation EPOSBaseResult

+(id) getEPOSBaseResultFromDictionary :(NSDictionary *) dic {
    EPOSBaseResult * baseResult = [[EPOSBaseResult alloc]init] ;
    baseResult.Result = [dic objectForKey:@"Result"];
    baseResult.ErrMessage = [dic objectForKey:@"ErrMessage"];
    baseResult.ErrSysTrackMessage = [dic objectForKey:@"ErrSysTrackMessage"];
    baseResult.ErrSysMessage = [dic objectForKey:@"ErrSysMessage"];
    baseResult.Message = [dic objectForKey:@"Message"];
    baseResult.LocStocks = [dic objectForKey:@"LocStocks"];
    return baseResult ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSBaseResult :(EPOSBaseResult* ) baseResult {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:baseResult.Result forKey:@"Result"];
    [dic setObject:baseResult.ErrMessage forKey:@"ErrMessage"];
    [dic setObject:baseResult.ErrSysTrackMessage forKey:@"ErrSysTrackMessage"];
    [dic setObject:baseResult.ErrSysMessage forKey:@"ErrSysMessage"];
    [dic setObject:baseResult.Message forKey:@"Message"];
    return dic ;
}

@end